package com.binfenhulian.chinaenergy.ces.manage.bean.param;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by wanghjbuf on 2018/3/14.
 */
@Data
public class CrawlerParam {

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 诞生url
     */
    @NotBlank(message = "开始url不能为空")
    private String edenUrl;

    /**
     * 下一步规则
     */
    @NotBlank(message = "下一步规则不能为空")
    private String nextRegex;

    /**
     * 目标url的Xpath匹配规则
     */
    @NotBlank(message = "目标url的xpath规则不能为空")
    private String destUrlXpath;

    /**
     * 目标content的Xpath匹配规则
     */
    @NotBlank(message = "目标内容的xpath规则不能为空")
    private String destContentXpath;

    /**
     * 描述
     */
    @NotBlank(message = "网站来源不能为空")
    private String remark;
}
